﻿using EasyCore.Entities.Auditing;
using EasyCore.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using EasyCore.Domain.Entities;

namespace EasyAdmin.Domain.Entities.Systems
{
    /// <summary>
    /// 角色表
    ///</summary>
    [SugarTable("sys_role")]
    public class SysRole :FullAuditedEntity
    {
        /// <summary>
        /// 唯标标识
        /// </summary>
        [SugarColumn(IsIdentity = true,IsPrimaryKey = true)]
        public long Id { get; set; }

        /// <summary>
        /// 角色编码
        ///</summary>
        [SugarColumn(ColumnDescription = "角色编码", IsNullable = false, Length = 20)]
        public string RoleCode { get; set; }

        /// <summary>
        /// 角色名称
        ///</summary>
        [SugarColumn(ColumnDescription ="角色名称",IsNullable = false,Length = 20)]
        public string RoleName { get; set; }

        /// <summary>
        /// 是否禁用
        /// </summary>
        [SugarColumn(ColumnDescription = "是否禁用", IsNullable = false)]
        public bool IsDisabled { get; set; }

        /// <summary>
        /// 排序码
        ///</summary>
        [SugarColumn(ColumnDescription = "排序", IsNullable = false)]
        public int OrderSort { get; set; }
    }
}
